import org.hibernate.Session;
import com.sistemavendas.modelo.HibernateUtil;


public class Conecta {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Session session = null;
		try
		{ 
			session = HibernateUtil.getSession().openSession();
			System.out.println("Conectou");		
			}
		finally
		{
			session.close();
			System.out.println("fechou conexao");
		}

	}

}
